<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of login
 *
 * @author IT
 */
class login extends db{
    function lg()
    {
        $username = $_POST["username"];
        $kt = false;
        $query = " SELECT * FROM users ";
        $data = $this->xemdl($query);
        
        foreach ($data as $value)
        {
            if($username == $value["name"])
                $kt = true;
        }
        return $kt;
    }
}
